@extends('common.en_base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />
@endsection

@section('html-body')
    <div class="neibanner" style="@if(!empty($classifyName))background:url({{$classifyName->img_url}}) @endif no-repeat 50%; background-size: cover;"></div>
    <div class="neipagename">
        <div class="pagename_en">
            @if(!empty($classifyName))
                {{$classifyName->name}}
            @else
                charitable activities
            @endif
        </div>
    </div>
    <div class="probox" style="background: #ffffff !important;">
        <div class="probox_right" style="float: none;width: 100%">
            <div class="proboxline" >
                <div class="proboxline_box" style="width: 100%">
                    @if(count($charitableList)> 0)
                        @foreach($charitableList as $charitable)
                            <a href="{{route('Admin.Home.enCharitableDetail')}}?id={{$charitable->id}}" title=" {{$charitable->desc}}">
                                <div class="proimg_img" style="height: 160px; margin-top: 8px;">
                                    <img src="{{$charitable->img_url}}" style="height: 160px"/>
                                </div>
                                <div class="proimg_title" style="margin-top: 8px;text-align: center;color: black;font-size: 16px>
                                    {{$charitable->title}}
                                </div>
                                <div class="proimg_time" style="font-size: 12px;color:#787575;overflow: visible;white-space: normal;line-height: 20px;height: 80px">
                                    {{mb_strimwidth($charitable->desc,0,110,'...','utf-8')}}
                                </div>
                                <div class="clear"></div>
                            </a>
                        @endforeach
                    @endif
                    <div class="clear"></div>
                </div>
            </div>
        </div>
        <div class="pages" style="text-align: center;">
            <?php echo $charitableList->render(); ?>
        </div>
    </div>

@endsection

